// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_hm_message_metadata
// * CreateDate    : 2014-06-05 18:29:59
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:59
// * LastChanger   : 2014-06-05 18:29:59
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class HmMessageMetadataTable : TableInfo
    {
		public const string C_TableName = "hm_message_metadata";
		
		public const string C_metadata_id = "metadata_id";
		public const string C_metadata_accountid = "metadata_accountid";
		public const string C_metadata_folderid = "metadata_folderid";
		public const string C_metadata_messageid = "metadata_messageid";
		public const string C_metadata_dateutc = "metadata_dateutc";
		public const string C_metadata_from = "metadata_from";
		public const string C_metadata_subject = "metadata_subject";
		public const string C_metadata_to = "metadata_to";
		public const string C_metadata_cc = "metadata_cc";
		
		public HmMessageMetadataTable()
        {
            _tableName = "hm_message_metadata";
        }
		
		protected static HmMessageMetadataTable _current;
        public static HmMessageMetadataTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new HmMessageMetadataTable();

            _current.Add(C_metadata_id, new ColumnInfo(C_metadata_id,"MetadataId", true, typeof(long)));
            _current.Add(C_metadata_accountid, new ColumnInfo(C_metadata_accountid,"MetadataAccountid", false, typeof(int)));
            _current.Add(C_metadata_folderid, new ColumnInfo(C_metadata_folderid,"MetadataFolderid", false, typeof(int)));
            _current.Add(C_metadata_messageid, new ColumnInfo(C_metadata_messageid,"MetadataMessageid", false, typeof(long)));
            _current.Add(C_metadata_dateutc, new ColumnInfo(C_metadata_dateutc,"MetadataDateutc", false, typeof(DateTime)));
            _current.Add(C_metadata_from, new ColumnInfo(C_metadata_from,"MetadataFrom", false, typeof(string)));
            _current.Add(C_metadata_subject, new ColumnInfo(C_metadata_subject,"MetadataSubject", false, typeof(string)));
            _current.Add(C_metadata_to, new ColumnInfo(C_metadata_to,"MetadataTo", false, typeof(string)));
            _current.Add(C_metadata_cc, new ColumnInfo(C_metadata_cc,"MetadataCc", false, typeof(string)));
			
		}
		
		public ColumnInfo metadata_id
        {
            get { return this[C_metadata_id]; }
        }
		
		public ColumnInfo metadata_accountid
        {
            get { return this[C_metadata_accountid]; }
        }
		
		public ColumnInfo metadata_folderid
        {
            get { return this[C_metadata_folderid]; }
        }
		
		public ColumnInfo metadata_messageid
        {
            get { return this[C_metadata_messageid]; }
        }
		
		public ColumnInfo metadata_dateutc
        {
            get { return this[C_metadata_dateutc]; }
        }
		
		public ColumnInfo metadata_from
        {
            get { return this[C_metadata_from]; }
        }
		
		public ColumnInfo metadata_subject
        {
            get { return this[C_metadata_subject]; }
        }
		
		public ColumnInfo metadata_to
        {
            get { return this[C_metadata_to]; }
        }
		
		public ColumnInfo metadata_cc
        {
            get { return this[C_metadata_cc]; }
        }
		
		
		
	}
}

